// eslint-disable-next-line no-unused-vars
const routeData = [
    {
        id: 1,
        path: '',
        component: '',
        redirect: '',
        name: '',
        title: '演示',
        icon: 'sidebar-default',
        children: [
            {
                id: 2,
                path: '/pages_example/general',
                component: 'Layout',
                redirect: '/pages_example/general/manager',
                name: 'pagesExampleGeneral',
                title: '通用',
                icon: 'ri-function-line',
                sidebar: true,
                breadcrumb: true,
                activeMenu: '',
                auth: [],
                i18n: '',
                badge: '',
                link: '',
                copyright: true,
                paddingBottom: 0,
                children: [
                    {
                        id: 3,
                        path: 'manager',
                        component: 'EmptyLayout',
                        redirect: '/pages_example/general/manager',
                        name: 'pagesExampleGeneralManager',
                        title: '管理员管理',
                        icon: '',
                        sidebar: true,
                        breadcrumb: true,
                        activeMenu: '',
                        auth: [],
                        i18n: '',
                        badge: '',
                        link: '',
                        copyright: true,
                        paddingBottom: 0,
                        children: [
                            {
                                id: 4,
                                path: '',
                                component: 'pages_example/manager/list',
                                redirect: '',
                                name: 'pagesExampleGeneralManagerList',
                                title: '管理员列表',
                                icon: '',
                                sidebar: false,
                                breadcrumb: false,
                                activeMenu: '',
                                auth: [],
                                i18n: '',
                                badge: '',
                                link: '',
                                copyright: true,
                                paddingBottom: 0
                            },
                            {
                                id: 5,
                                path: 'detail',
                                component: 'pages_example/manager/detail',
                                redirect: '',
                                name: 'pagesExampleGeneralManagerCreate',
                                title: '新增管理员',
                                icon: '',
                                sidebar: false,
                                breadcrumb: true,
                                activeMenu: '/pages_example/general/manager',
                                auth: [],
                                i18n: '',
                                badge: '',
                                link: '',
                                copyright: true,
                                paddingBottom: 0
                            },
                            {
                                id: 6,
                                path: 'detail/:id',
                                component: 'pages_example/manager/detail',
                                redirect: '',
                                name: 'pagesExampleGeneralManagerEdit',
                                title: '编辑管理员',
                                icon: '',
                                sidebar: false,
                                breadcrumb: true,
                                activeMenu: '/pages_example/general/manager',
                                auth: [],
                                i18n: '',
                                badge: '',
                                link: '',
                                copyright: true,
                                paddingBottom: 0
                            }
                        ]
                    }
                ]
            }
        ]
    }
]

const routeList = [
    {
        meta: {
            title: '演示',
            icon: 'sidebar-default'
        },
        children: [
            {
                path: '/pages_example/general',
                component: 'Layout',
                redirect: '/pages_example/general/manager',
                name: 'pagesExampleGeneral',
                meta: {
                    title: '通用',
                    icon: 'ri-function-line'
                },
                children: [
                    {
                        path: 'manager',
                        name: 'pagesExampleGeneralManager',
                        component: 'EmptyLayout',
                        redirect: '/pages_example/general/manager',
                        meta: {
                            title: '管理员管理'
                        },
                        children: [
                            {
                                path: '',
                                name: 'pagesExampleGeneralManagerList',
                                component: 'pages_example/manager/list',
                                meta: {
                                    title: '管理员列表',
                                    sidebar: false,
                                    breadcrumb: false
                                }
                            },
                            {
                                path: 'detail',
                                name: 'pagesExampleGeneralManagerCreate',
                                component: 'pages_example/manager/detail',
                                meta: {
                                    title: '新增管理员',
                                    sidebar: false,
                                    activeMenu: '/pages_example/general/manager'
                                }
                            },
                            {
                                path: 'detail/:id',
                                name: 'pagesExampleGeneralManagerEdit',
                                component: 'pages_example/manager/detail',
                                meta: {
                                    title: '编辑管理员',
                                    sidebar: false,
                                    activeMenu: '/pages_example/general/manager'
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    }
]

module.exports = [
    {
        url: 'route/list',
        type: 'get',
        result: () => {
            return {
                error: '',
                status: 1,
                data: routeList
            }
        }
    }
]
